/**
 * 
 */
package v1c05;

import java.util.ArrayList;

import v1c04.Employee;

/**
 * @author gjunming@gmail.com
 * @version Aug 5, 2009 5:12:44 PM
 */
public class MyArrayList {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ArrayList<Employee> employees = new ArrayList<Employee>(3);
		employees.add(new Employee("hello world", "this is hello world", 200.0,
				2009,
				3, 11));

		for (Employee employee : employees) {
			System.out.println("name: " + employee.getName());
		}
		System.out.println(employees.get(0).getName());
		System.out.println(employees.size());
	}

}
